package jdk7;

import java.util.HashMap;
import java.util.Map;

public class TypeInferenceForGeneric {
	@SuppressWarnings("unused")
	public static void main(String[] args) {

		// 以前的写法
		Map<String, Object> map1 = new HashMap<String, Object>();

		// jdk7以后
		Map<String, Object> map2 = new HashMap<>();

	}
}
